@inject('tag', 'App\Models\Tag')
@php
    $tag_num   = intval($tag->count()/16);
    $tags   = $tag->skip(mt_rand(0,$tag_num))->take(12)->get();
@endphp
@if(isset($tags))
    <div class="layui-card">
        <div class="dir-site-rand-cloud layui-hide-xs">
            @foreach($tags as $v)
                <a href="{{ url('/tags/'.$v->name) }}/">{{ str_limit($v->name,'5') }}</a>
            @endforeach
        </div>
    </div>
@endif